<template>
  <div class="app-container">
    <el-card>
      <el-tabs v-model="activeName" @tab-click="handleClick">
        <el-tab-pane label="WMS单据查询" name="first" :lazy="true">
          <LocalIndex />
        </el-tab-pane>
        <el-tab-pane label="NCC单据查询" name="second" :lazy="true">
          <NccIndex />
        </el-tab-pane>
      </el-tabs>
    </el-card>
  </div>
</template>

<script>
import LocalIndex from './localIndex.vue'
import NccIndex from './nccIndex.vue'

export default {
  data() {
    return {
      activeName: 'first'
    }
  },
  components: {
    LocalIndex,
    NccIndex
  },
  methods: {
    handleClick(tab, event) {
      console.log(tab, event);
    }
  }
}
</script>

<style scoped>
.app-container {
  padding: 10px;
}

/* .el-card {
  margin-bottom: 1px;
} */

/* .btn el-button {
  margin-bottom: 20px;
} */

/* .el-pagination {
  float: right;
  margin: 20px;
} */
</style>
